<?php

	defined("DS") ? null : define("DS", DIRECTORY_SEPARATOR);

	defined("SITE_ROOT") ? null : define("SITE_ROOT", 'C:'.DS.'wamp'.DS.'www'.DS.'MySocialNetwork');

	defined("LIB_PATH") ? null : define("LIB_PATH", SITE_ROOT.DS.'includes');

	// load config file first
	require_once(LIB_PATH.DS."config.php");

	// load basic functions next, so everything after can use them
	require_once(LIB_PATH.DS."functions.php");

	// load core objects
	require_once(LIB_PATH.DS."session.php");
	require_once(LIB_PATH.DS."database.php");
	require_once(LIB_PATH.DS."database_object.php");
	require_once(LIB_PATH.DS."pagination.php");

	// load database-related classes
	require_once(LIB_PATH.DS."user.php");
	require_once(LIB_PATH.DS."game.php");
	require_once(LIB_PATH.DS."photograph.php");
?>